["Initialize", [true]] call BIS_fnc_dynamicGroups; // 初始化动态组框架，在任务开始时由玩家领导的组将被注册
//EOS AI 系统
[]execVM "eos\OpenMe.sqf";
// if (isServer) then
// {
// 	 [] spawn {
// 		_maxGroup = 4;//最大玩家组队数
// 		while {true} do {
// 			sleep 1;
// 			{
// 				sum = count units _x;
// 				if (sum > _maxGroup) then {
// 					_units = units _x;
// 					for [{ _i = 0 }, { _i < sum }, { _i = _i + 1 }] do {
// 						if (_i > _maxGroup) then {
// 							_kickPlayerObj = (_units # _i);
// 							["UnKickPlayer", [groupId (group player),_kickPlayerObj]] call BIS_fnc_dynamicGroups;//踢出第5以上个玩家
// 						};
						
// 					};

// 				};
// 			} forEach allUnits; 
// 		};
//  };
// };

addMissionEventHandler ["PlayerConnected",{


	params ["_id", "_uid", "_name", "_jip", "_owner", "_idstr"];
	systemChat ">>>>>";
	diag_log "TEST:PlayerConnected";

	

}];

addMissionEventHandler ["HandleDisconnect", {
	params ["_unit", "_id", "_uid", "_name"];
	diag_log "TEST:PlayerDisconnected";
	deleteVehicle _unit;
	false;
}];


// addMissionEventHandler ["onPlayerDisconnected",
// {
// 	params ["_id", "_uid", "_name", "_jip", "_owner", "_idstr"];
	

// }];